home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / librw / RWTPtrMultiMap.z / RWTPtrMultiMap
Encoding:
Text File  |  2002-10-03  |  23.7 KB  |  595 lines

  1.  
  2.  
  3.  
  4. RRRRWWWWTTTTPPPPttttrrrrMMMMuuuullllttttiiiiMMMMaaaapppp((((3333CCCC++++++++))))                                      RRRRWWWWTTTTPPPPttttrrrrMMMMuuuullllttttiiiiMMMMaaaapppp((((3333CCCC++++++++))))
  5.  
  6.  
  7.  
  8. NNNNaaaammmmeeee
  9.      RWTPtrMultiMap<K,T,C> - Rogue Wave library class
  10.  
  11. SSSSyyyynnnnooooppppssssiiiissss
  12.               #include <rw/tpmmap.h>
  13.           RWTPtrMultiMap<K,T,C> m;
  14.  
  15.  
  16.  
  17. SSSSttttaaaannnnddddaaaarrrrdddd CCCC++++++++ LLLLiiiibbbbrrrraaaarrrryyyy DDDDeeeeppppeeeennnnddddeeeennnntttt!!!!
  18.  
  19.  
  20.  
  21.      RRRRWWWWTTTTPPPPttttrrrrMMMMuuuullllttttiiiiMMMMaaaapppp requires the Standard C++ Library.
  22.  
  23.  
  24. DDDDeeeessssccccrrrriiiippppttttiiiioooonnnn
  25.      This class maintains a pointer-based collection of associations of type
  26.      ppppaaaaiiiirrrr<<<<KKKK****,,,, ccccoooonnnnsssstttt TTTT****>>>>.  The first part of the association is a key of type
  27.      KKKK****, the second is its associated item of type TTTT****.  Order is determined by
  28.      the key according to a comparison object of type CCCC.  CCCC must induce a
  29.      total ordering on elements of type KKKK via a public member
  30.  
  31.               bool operator()(const K& x, const K& y)
  32.  
  33.  
  34.  
  35.  
  36.  
  37.      which returns ttttrrrruuuueeee if xxxx and its partner should precede yyyy and its partner
  38.      within the collection.  The structure lllleeeessssssss<<<<TTTT>>>> from the C++-standard
  39.      header file <<<<ffffuuuunnnnccccttttiiiioooonnnnaaaallll>>>> is an example.  Note that keys will be
  40.      dereferenced before being compared.  RRRRWWWWTTTTPPPPttttrrrrMMMMuuuullllttttiiiiMMMMaaaapppp<<<<KKKK,,,,TTTT,,,,CCCC>>>> may contain
  41.      multiple keys that compare equal to each other.  (RRRRWWWWTTTTPPPPttttrrrrMMMMaaaapppp<<<<KKKK,,,,TTTT,,,,CCCC>>>> will
  42.      not accept a key that compares equal to any key already in the
  43.      collection.)  Equality is based on the comparison object and not on the
  44.      ======== operator.  Given a comparison object ccccoooommmmpppp, keys aaaa and bbbb are equal if
  45.  
  46.               !comp(a,b) && !comp(b,a).
  47.  
  48.  
  49.  
  50. PPPPeeeerrrrssssiiiisssstttteeeennnncccceeee
  51.  
  52.  
  53.  
  54.      Isomorphic.
  55.  
  56. EEEExxxxaaaammmmpppplllleeeessss
  57.      In this example, a multimap of RRRRWWWWCCCCSSSSttttrrrriiiinnnnggggs and RRRRWWWWDDDDaaaatttteeees is exercised.
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. RRRRWWWWTTTTPPPPttttrrrrMMMMuuuullllttttiiiiMMMMaaaapppp((((3333CCCC++++++++))))                                      RRRRWWWWTTTTPPPPttttrrrrMMMMuuuullllttttiiiiMMMMaaaapppp((((3333CCCC++++++++))))
  71.  
  72.  
  73.  
  74.               //
  75.  
  76.  
  77.  
  78.               // tpmmap.cpp
  79.           //
  80.           #include <rw/tpmmap.h>
  81.           #include <rw/cstring.h>
  82.           #include <rw/rwdate.h>
  83.           #include <iostream.h>
  84.           main(){
  85.             typedef RWTPtrMultiMap<RWCString, RWDate, less<RWCString> >
  86.              RWMMap;
  87.             RWMMap birthdays;
  88.  
  89.  
  90.                 birthdays.insert(new RWCString("John"),
  91.  
  92.  
  93.  
  94.                                             new RWDate(12, "April", 1975));
  95.             birthdays.insert(new RWCString("Ivan"),
  96.                                         new RWDate(2, "Nov", 1980));
  97.             birthdays.insert(new RWCString("Mary"),
  98.                                         new RWDate(22, "Oct", 1987));
  99.             birthdays.insert(new RWCString("Ivan"),
  100.                                         new RWDate(19, "June", 1971));
  101.             birthdays.insert(new RWCString("Sally"),
  102.                                         new RWDate(15, "March", 1976));
  103.             birthdays.insert(new RWCString("Ivan"),
  104.                                         new RWDate(6, "July", 1950));
  105.  
  106.  
  107.                 // How many "Ivan"s?
  108.  
  109.  
  110.  
  111.                 RWCString ivanstr("Ivan");
  112.             RWMMap::size_type n = birthdays.occurrencesOf(&ivanstr);
  113.             RWMMap::size_type idx = 0;
  114.             cout << "There are " << n << " Ivans:" << endl;
  115.             RWMMap::const_iterator iter =
  116.                                        birthdays.std().lower_bound(&ivanstr);
  117.  
  118.  
  119.                 while (++idx <= n)
  120.  
  121.  
  122.  
  123.                   cout << idx << ".  " << *(*iter++).second << endl;
  124.             return 0;
  125.           }
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. RRRRWWWWTTTTPPPPttttrrrrMMMMuuuullllttttiiiiMMMMaaaapppp((((3333CCCC++++++++))))                                      RRRRWWWWTTTTPPPPttttrrrrMMMMuuuullllttttiiiiMMMMaaaapppp((((3333CCCC++++++++))))
  137.  
  138.  
  139.  
  140.           Program Output:
  141.           There are 3 Ivans:
  142.           1.  11/02/80
  143.           2.  06/19/71
  144.           3.  07/06/50
  145.  
  146. RRRReeeellllaaaatttteeeedddd CCCCllllaaaasssssssseeeessss
  147.      Class RRRRWWWWTTTTPPPPttttrrrrMMMMaaaapppp<<<<KKKK,,,,TTTT,,,,CCCC>>>> offers the same interface to a pointer-based
  148.      collection that will not accept multiple keys that compare equal to each
  149.      other.  RRRRWWWWTTTTPPPPttttrrrrMMMMuuuullllttttiiiiSSSSeeeetttt<<<<TTTT,,,,CCCC>>>> maintains a pointer-based collection of keys
  150.      without the associated values.  Class
  151.      mmmmuuuullllttttiiiimmmmaaaapppp<<<<KKKK****,,,,TTTT****,,,,ddddeeeerrrreeeeffff____ccccoooommmmppppaaaarrrreeee<<<<CCCC,,,,KKKK,,,,aaaallllllllooooccccaaaattttoooorrrr>>>> >>>> is the C++-standard
  152.      collection that serves as the underlying implementation for this
  153.      collection.
  154.  
  155. PPPPuuuubbbblllliiiicccc TTTTyyyyppppeeeeddddeeeeffffssss
  156.               typedef rw_deref_compare<C,K>             container_comp;
  157.           typedef multimap<K*,T*,container_comp,allocator>
  158.                           container_type;
  159.           typedef container_type::size_type         size_type;
  160.           typedef container_type::difference_type   difference_type;
  161.           typedef container_type::iterator          iterator;
  162.           typedef container_type::const_iterator    const_iterator;
  163.           typedef pair<K* const, T*>                value_type;
  164.           typedef pair<K* const, T*>                reference;
  165.           typedef const pair<K* const, T*>&         const_reference;
  166.           typedef K*                                value_type_key;
  167.           typedef T*                                value_type_data;
  168.           typedef K*&                               reference_key;
  169.           typedef T*&                               reference_data;
  170.           typedef const K*const&                    const_reference_key;
  171.           typedef const T*const&                    const_reference_data;
  172.  
  173.  
  174.  
  175. PPPPuuuubbbblllliiiicccc CCCCoooonnnnssssttttrrrruuuuccccttttoooorrrrssss
  176.               RRRRWWWWTTTTPPPPttttrrrrMMMMuuuullllttttiiiiMMMMaaaapppp<<<<KKKK,,,,TTTT,,,,CCCC>>>>
  177.           (const container_comp& comp =container_comp());
  178.  
  179.  
  180.      Constructs an empty map with comparator ccccoooommmmpppp.
  181.  
  182.               RRRRWWWWTTTTPPPPttttrrrrMMMMuuuullllttttiiiiMMMMaaaapppp<<<<KKKK,,,,TTTT,,,,CCCC>>>>(const container_type& m);
  183.  
  184.  
  185.      Constructs a multimap by copying all element from mmmm.
  186.  
  187.               RRRRWWWWTTTTPPPPttttrrrrMMMMuuuullllttttiiiiMMMMaaaapppp<<<<KKKK,,,,TTTT,,,,CCCC>>>>(const RWTPtrMultiMap<K,T,C>& rwm);
  188.  
  189.  
  190.      Copy constructor.
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. RRRRWWWWTTTTPPPPttttrrrrMMMMuuuullllttttiiiiMMMMaaaapppp((((3333CCCC++++++++))))                                      RRRRWWWWTTTTPPPPttttrrrrMMMMuuuullllttttiiiiMMMMaaaapppp((((3333CCCC++++++++))))
  203.  
  204.  
  205.  
  206.               RRRRWWWWTTTTPPPPttttrrrrMMMMuuuullllttttiiiiMMMMaaaapppp<<<<KKKK,,,,TTTT,,,,CCCC>>>>(value_type* first,value_type* last,
  207.              const container_comp& comp = container_comp());
  208.  
  209.  
  210.      Constructs a multimap by copying elements from the array of ppppaaaaiiiirrrrs pointed
  211.      to by ffffiiiirrrrsssstttt, up to, but not including, the pair pointed to by llllaaaasssstttt.
  212.  
  213. PPPPuuuubbbblllliiiicccc MMMMeeeemmmmbbbbeeeerrrr OOOOppppeeeerrrraaaattttoooorrrrssss
  214.               RWTPtrMultiMap<K,T,C>&
  215.           ooooppppeeeerrrraaaattttoooorrrr====(const container_type& m);
  216.           RWTPtrMultiMap<K,T,C>&
  217.           ooooppppeeeerrrraaaattttoooorrrr====(const RWTPtrMultiMap<K,T,C>& m);
  218.  
  219.  
  220.      Destroys all associations in self and replaces them by copying all
  221.      associations from mmmm....
  222.  
  223.               bool
  224.           ooooppppeeeerrrraaaattttoooorrrr<<<<(const RWTPtrMultiMap<K,T,C>& m);
  225.  
  226.  
  227.      Returns ttttrrrruuuueeee if self compares lexicographically less than mmmm, otherwise
  228.      returns ffffaaaallllsssseeee.  Keys in each collection are dereferenced before being
  229.      compared.  Assumes that type KKKK has well-defined less-than semantics.
  230.  
  231.               bool
  232.           ooooppppeeeerrrraaaattttoooorrrr========(const RWTPtrMultiMap<K,T,C>& m);
  233.  
  234.  
  235.      Returns ttttrrrruuuueeee if self compares equal to mmmm, otherwise returns ffffaaaallllsssseeee.  Two
  236.      collections are equal if both have the same number of entries, and
  237.      iterating through both collections produces, in turn, individual keys
  238.      that compare equal to each other.  Keys are dereferenced before being
  239.      compared.
  240.  
  241. PPPPuuuubbbblllliiiicccc MMMMeeeemmmmbbbbeeeerrrr FFFFuuuunnnnccccttttiiiioooonnnnssss
  242.               void
  243.           aaaappppppppllllyyyy(void (*fn)(const K*, T*&,void*),void* d);
  244.           void
  245.           aaaappppppppllllyyyy(void (*fn)(const K*,const T*,void*),void* d) const;
  246.  
  247.  
  248.      Applies the user-defined function pointed to by ffffnnnn to every association
  249.      in the collection.  This function must have one of the prototypes:
  250.  
  251.                  void yourfun(const K* key, T*& a, void* d);
  252.  
  253.  
  254.  
  255.                  void yourfun(const K* key, const T* a, void* d);
  256.  
  257.  
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 4444
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268. RRRRWWWWTTTTPPPPttttrrrrMMMMuuuullllttttiiiiMMMMaaaapppp((((3333CCCC++++++++))))                                      RRRRWWWWTTTTPPPPttttrrrrMMMMuuuullllttttiiiiMMMMaaaapppp((((3333CCCC++++++++))))
  269.  
  270.  
  271.  
  272.      Client data may be passed through parameter dddd.
  273.  
  274.               void
  275.           aaaappppppppllllyyyyTTTTooooKKKKeeeeyyyyAAAAnnnnddddVVVVaaaalllluuuueeee(void (*fn)(const K*, T*&,void*),void* d);
  276.           void
  277.           aaaappppppppllllyyyyTTTTooooKKKKeeeeyyyyAAAAnnnnddddVVVVaaaalllluuuueeee
  278.           (void (*fn)(const K*,const T*,void*),void* d) const;
  279.  
  280.  
  281.      This is a deprecated version of the aaaappppppppllllyyyy member above.  It behaves
  282.      exactly the same as aaaappppppppllllyyyy.
  283.  
  284.               iterator
  285.           bbbbeeeeggggiiiinnnn();
  286.           const_iterator
  287.           bbbbeeeeggggiiiinnnn() const;
  288.  
  289.  
  290.      Returns an iterator positioned at the first pair in self.
  291.  
  292.               void
  293.           cccclllleeeeaaaarrrr();
  294.  
  295.  
  296.      Clears the collection by removing all items from self.
  297.  
  298.               void
  299.           cccclllleeeeaaaarrrrAAAAnnnnddddDDDDeeeessssttttrrrrooooyyyy();
  300.  
  301.  
  302.      Removes all associations from the collection and uses ooooppppeeeerrrraaaattttoooorrrr ddddeeeelllleeeetttteeee to
  303.      destroy the objects pointed to by the keys and their associated items.
  304.      Do not use this method if multiple pointers to the same object are
  305.      stored.
  306.  
  307.               bool
  308.           ccccoooonnnnttttaaaaiiiinnnnssss(const K* key) const;
  309.  
  310.  
  311.      Returns ttttrrrruuuueeee if there exists a key jjjj in self that compares equal to ****kkkkeeeeyyyy,
  312.      otherwise returns ffffaaaallllsssseeee.
  313.  
  314.               bool
  315.           ccccoooonnnnttttaaaaiiiinnnnssss(bool (*fn)(value_type,void*), void* d) const;
  316.  
  317.  
  318.      Returns ttttrrrruuuueeee if there exists an association a in self such that the
  319.      expression ((((((((****ffffnnnn))))((((aaaa,,,,dddd)))))))) is ttttrrrruuuueeee, otherwise returns ffffaaaallllsssseeee.  ffffnnnn points to a
  320.      user-defined tester function which must have prototype:
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.                                                                         PPPPaaaaggggeeee 5555
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334. RRRRWWWWTTTTPPPPttttrrrrMMMMuuuullllttttiiiiMMMMaaaapppp((((3333CCCC++++++++))))                                      RRRRWWWWTTTTPPPPttttrrrrMMMMuuuullllttttiiiiMMMMaaaapppp((((3333CCCC++++++++))))
  335.  
  336.  
  337.  
  338.                  bool yourTester(value_type a, void* d);
  339.  
  340.  
  341.  
  342.  
  343.  
  344.      Client data may be passed through parameter dddd.
  345.  
  346.               iterator
  347.           eeeennnndddd();
  348.           const_iterator
  349.           eeeennnndddd() const;
  350.  
  351.  
  352.      Returns an iterator positioned "just past" the last association in self.
  353.  
  354.               size_type
  355.           eeeennnnttttrrrriiiieeeessss() const;
  356.  
  357.  
  358.      Returns the number of associations in self.
  359.  
  360.               const K*
  361.           ffffiiiinnnndddd(const K* key) const;
  362.  
  363.  
  364.      If there exists a key jjjj in self that compares equal to ****kkkkeeeeyyyy,  then jjjj is
  365.      returned.  Otherwise, returns rrrrwwwwnnnniiiillll.
  366.  
  367.               value_type
  368.           ffffiiiinnnndddd(bool (*fn)(value_type,void*), void* d) const;
  369.  
  370.  
  371.      If there exists an association aaaa in self such that the expression
  372.      ((((((((****ffffnnnn))))((((aaaa,,,,dddd)))))))) is ttttrrrruuuueeee, then returns aaaa.  Otherwise, returns
  373.      ppppaaaaiiiirrrr<<<<rrrrwwwwnnnniiiillll,,,,rrrrwwwwnnnniiiillll>>>>.  ffffnnnn points to a user-defined tester function which
  374.      must have prototype:
  375.  
  376.                  bool yourTester(value_type a, void* d);
  377.  
  378.  
  379.  
  380.  
  381.  
  382.      Client data may be passed through parameter dddd.
  383.  
  384.               T*
  385.           ffffiiiinnnnddddVVVVaaaalllluuuueeee(const K* key);
  386.           const T*
  387.           ffffiiiinnnnddddVVVVaaaalllluuuueeee(const K* key) const;
  388.  
  389.  
  390.  
  391.  
  392.  
  393.                                                                         PPPPaaaaggggeeee 6666
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400. RRRRWWWWTTTTPPPPttttrrrrMMMMuuuullllttttiiiiMMMMaaaapppp((((3333CCCC++++++++))))                                      RRRRWWWWTTTTPPPPttttrrrrMMMMuuuullllttttiiiiMMMMaaaapppp((((3333CCCC++++++++))))
  401.  
  402.  
  403.  
  404.      If there exists a key jjjj in self such that the expression ((((****jjjj ======== ****kkkkeeeeyyyy)))) is
  405.      ttttrrrruuuueeee, returns the item associated with jjjj.  Otherwise, returns rrrrwwwwnnnniiiillll.
  406.  
  407.               const K*
  408.           ffffiiiinnnnddddKKKKeeeeyyyyAAAAnnnnddddVVVVaaaalllluuuueeee(const K* key, T*& tr);
  409.           const K*
  410.           ffffiiiinnnnddddKKKKeeeeyyyyAAAAnnnnddddVVVVaaaalllluuuueeee(const K* key, const T*& tr) const;
  411.  
  412.  
  413.      If there exists a key jjjj in self that compares equal to ****kkkkeeeeyyyy, assigns the
  414.      item associated with jjjj to ttttrrrr,,,, and returns jjjj.  Otherwise, returns rrrrwwwwnnnniiiillll
  415.      and leaves the value of ttttrrrr unchanged.
  416.  
  417.               bool
  418.           iiiinnnnsssseeeerrrrtttt(K* key, T* a);
  419.  
  420.  
  421.      Adds kkkkeeeeyyyy with associated item aaaa to the collection.  Returns ttttrrrruuuueeee.
  422.  
  423.               bool
  424.           iiiinnnnsssseeeerrrrttttKKKKeeeeyyyyAAAAnnnnddddVVVVaaaalllluuuueeee(K* key, T* a);
  425.  
  426.  
  427.      This is a deprecated version of the iiiinnnnsssseeeerrrrtttt member above.  It behaves
  428.      exactly the same as iiiinnnnsssseeeerrrrtttt.
  429.  
  430.               bool
  431.           iiiissssEEEEmmmmppppttttyyyy() const;
  432.  
  433.  
  434.      Returns ttttrrrruuuueeee if there are no items in the collection, ffffaaaallllsssseeee otherwise.
  435.  
  436.               size_type
  437.           ooooccccccccuuuurrrrrrrreeeennnncccceeeessssOOOOffff(const K* key) const;
  438.  
  439.  
  440.      Returns the number of keys jjjj in self that compare equal to ****kkkkeeeeyyyy.
  441.  
  442.               size_type
  443.           ooooccccccccuuuurrrrrrrreeeennnncccceeeessssOOOOffff
  444.           (bool (*fn)(value_type,void*), void* d) const;
  445.  
  446.  
  447.      Returns the number of associations aaaa in self such that the
  448.      expression((((((((****ffffnnnn))))((((aaaa,,,,dddd)))))))) is ttttrrrruuuueeee.  ffffnnnn points to a user-defined tester
  449.      function which must have prototype:
  450.  
  451.                  bool yourTester(value_type a, void* d);
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.                                                                         PPPPaaaaggggeeee 7777
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466. RRRRWWWWTTTTPPPPttttrrrrMMMMuuuullllttttiiiiMMMMaaaapppp((((3333CCCC++++++++))))                                      RRRRWWWWTTTTPPPPttttrrrrMMMMuuuullllttttiiiiMMMMaaaapppp((((3333CCCC++++++++))))
  467.  
  468.  
  469.  
  470.  
  471.  
  472.      Client data may be passed through parameter dddd.
  473.  
  474.               K*
  475.           rrrreeeemmmmoooovvvveeee(const K* key);
  476.  
  477.  
  478.      Removes the first association with key jjjj in self such that the expression
  479.      ((((****jjjj ======== ****kkkkeeeeyyyy)))) is ttttrrrruuuueeee and returns jjjj.  Returns rrrrwwwwnnnniiiillll if there is no such
  480.      association.
  481.  
  482.               K*
  483.           rrrreeeemmmmoooovvvveeee(bool (*fn)(value_type,void*), void* d);
  484.  
  485.  
  486.      Removes the first association aaaa in self such that the expression
  487.      ((((((((****ffffnnnn))))((((aaaa,,,,dddd)))))))) is ttttrrrruuuueeee and returns its key.  Returns rrrrwwwwnnnniiiillll if there is no
  488.      such association.  ffffnnnn points to a user-defined tester function which must
  489.      have prototype:
  490.  
  491.                  bool yourTester(value_type a, void* d);
  492.  
  493.  
  494.  
  495.  
  496.  
  497.      Client data may be passed through parameter dddd.
  498.  
  499.               size_type
  500.           rrrreeeemmmmoooovvvveeeeAAAAllllllll(const K* key);
  501.  
  502.  
  503.      Removes all associations with key jjjj in self that compare equal to ****kkkkeeeeyyyy.
  504.      Returns the number of associations removed.
  505.  
  506.               size_type
  507.           rrrreeeemmmmoooovvvveeeeAAAAllllllll(bool (*fn)(value_type,void*), void* d);
  508.  
  509.  
  510.      Removes all associations aaaa in self such that the expression
  511.      ((((((((****ffffnnnn))))((((aaaa,,,,dddd))))))))is ttttrrrruuuueeee.  Returns the number removed.  ffffnnnn points to a user-
  512.      defined tester function which must have prototype:
  513.  
  514.                  bool yourTester(value_type a, void* d);
  515.  
  516.  
  517.  
  518.  
  519.  
  520.      Client data may be passed through parameter dddd.
  521.  
  522.  
  523.  
  524.  
  525.                                                                         PPPPaaaaggggeeee 8888
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532. RRRRWWWWTTTTPPPPttttrrrrMMMMuuuullllttttiiiiMMMMaaaapppp((((3333CCCC++++++++))))                                      RRRRWWWWTTTTPPPPttttrrrrMMMMuuuullllttttiiiiMMMMaaaapppp((((3333CCCC++++++++))))
  533.  
  534.  
  535.  
  536.               container_type&
  537.           ssssttttdddd();
  538.           const container_type&
  539.           ssssttttdddd() const;
  540.  
  541.  
  542.      Returns a reference to the underlying C++-standard collection that serves
  543.      as the implementation for self.
  544.  
  545. RRRReeeellllaaaatttteeeedddd GGGGlllloooobbbbaaaallll OOOOppppeeeerrrraaaattttoooorrrrssss
  546.               RWvostream&
  547.           ooooppppeeeerrrraaaattttoooorrrr<<<<<<<<(RWvostream& strm,
  548.                  const RWTPtrMultiMap<K,T,C>& coll);
  549.           RWFile&
  550.           ooooppppeeeerrrraaaattttoooorrrr<<<<<<<<(RWFile& strm,
  551.                  const RWTPtrMultiMap<K,T,C>& coll);
  552.  
  553.  
  554.      Saves the collection ccccoooollllllll onto the output stream ssssttttrrrrmmmm, or a reference to
  555.      it if it has already been saved.
  556.  
  557.               RWvistream&
  558.           ooooppppeeeerrrraaaattttoooorrrr>>>>>>>>(RWvistream& strm, RWTPtrMultiMap<K,T,C>& coll);
  559.           RWFile&
  560.           ooooppppeeeerrrraaaattttoooorrrr>>>>>>>>(RWFile& strm, RWTPtrMultiMap<K,T,C>& coll);
  561.  
  562.  
  563.      Restores the contents of the collection ccccoooollllllll from the input stream ssssttttrrrrmmmm.
  564.  
  565.               RWvistream&
  566.           ooooppppeeeerrrraaaattttoooorrrr>>>>>>>>(RWvistream& strm, RWTPtrMultiMap<K,T,C>*& p);
  567.           RWFile&
  568.           ooooppppeeeerrrraaaattttoooorrrr>>>>>>>>(RWFile& strm, RWTPtrMultiMap<K,T,C>*& p);
  569.  
  570.  
  571.      Looks at the next object on the input stream ssssttttrrrrmmmm and either creates a
  572.      new collection off the heap and sets pppp to point to it, or sets pppp to point
  573.      to a previously read instance.  If a collection is created off the heap,
  574.      then you are responsible for deleting it.
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581.  
  582.  
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.  
  591.                                                                         PPPPaaaaggggeeee 9999
  592.  
  593.  
  594.  
  595.